<template>
	<view>
		<view class="content">
			支付成功
			{{count}}秒后跳转到首页
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				count:3
			}
		},
		methods: {
			
			
		},
		onLoad() {
			var _this=this
			var time=setInterval(r=>{
				_this.count=_this.count-1
				if(this.count==0){
					clearInterval(time)
					uni.showLoading({
						title: ''
					});
					setTimeout(function () {
						uni.hideLoading();
						uni.navigateBack({
							delta:1
						})
					}, 1000);
					
					
				}
			},1000)
			
		}
	}
</script>

<style>

.content{
	text-align: center;
	margin: auto;
}
</style>
